package com.fanbuchi.app.ins.ui;


import android.test.ActivityTestCase;
import android.test.suitebuilder.annotation.SmallTest;

import com.fanbuchi.app.ins.R;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

/**
 * Created by win7 on 2016/5/25.
 */
//@RunWith(AndroidJUnit4.class)
@SmallTest
public class LoginActivityInstrumentationTest   {

    private static final String STRING_TO_BE_TYPED = "Peter";

    /*@Rule
    public ActivityTestRule<LoginActivity> mActivityRule = new ActivityTestRule<>(
            LoginActivity.class);

    @Test
    public void sayHello(){
        onView(withId(R.id.editText)).perform(typeText(STRING_TO_BE_TYPED), closeSoftKeyboard()); //line 1

        onView(withText("Say hello!")).perform(click()); //line 2

        String expectedText = "Hello, " + STRING_TO_BE_TYPED + "!";
        onView(withId(R.id.textView)).check(matches(withText(expectedText))); //line 3
    }*/
}